<!-- 加载玩法列表模板 -->
<script type="text/html" id="proxy-template">
<thead>
	 <tr>
        <th>用户ID</th>
		<th>用户名</th>
		<th>用户类型</th>
		<th>返点</th> 
		<th>余额</th>
		<th>账号类型</th>
		<th>状态</th>
		<th>在线</th>
		<th>QQ</th>
		<th>注册时间</th>
		<th>操作</th>
	</tr>
</thead>
<tbody id="proxy-data">
	
</tbody>
</script>
<script type="text/html" id="proxy-z-template">
	<%_.each(items,function(item,index) {%>
		<tr data-uid="<%=item.id%>">
            <td><%=item.uid%></td>
			<td><%=item.userName%></td>
			<td style="text-align:center">
				<%if(item.userType==0){%>代理<%}%>
				<%if(item.userType==1){%>会员<%}%> 
			</td>
			<td><%=(item.fanDian*100).toFixed(2) %></td>
            <td><%=item.coin.toFixed(2) %></td>
			<td style="text-align:center"> 
                <%if(item.userType==0){%>----<%}else{%>虚拟账户<% }%> 
            </td>
            <td> 
                <%if(item.status==0){%>正常<%}else{%>停用<% }%> 
            </td>
			<td>
                <%if(item.isOnline==0){%>在线<%}else{%>离线<% }%> 
            </td>
			<td><%=item.userQq %></td> 
			<td><%=item.registerDate%></td>
			<td>
				<%if(item.isSelf=='N'){%><a data-modify-user >修改</a>&nbsp;<%}%>
                <%if(item.isSelf=='N'&&item.isCharge=='Y'){%><a data-charge-user >充值</a>&nbsp;<%}%>
				<a data-flag="next-level">查看下级</a>
			</td>
		</tr>
	<%})%>
</script>
<script type="text/html" id="proxy-z-empty-template">
<tr data-flag="empty">
	<td  colspan="9" style="text-align:center;">暂无下级查询记录。</td>
</tr>
</script>
<script type="text/html" id="charge-table-template">
<table width="100%" id="vip_charge_table" class="tab-list stripe mt10">
		<tr>
			<td>上级关系：</td>
			<td><%=relation%></td>
		</tr>
		<tr>
			<td>用户名：</td>
			<td><%=username%></td>
		</tr>
		<tr>
			<td>用户余额：</td>
			<td><%=coin%></td>
		</tr>
		<tr>
			<td>我的余额：</td>
			<td><span style="color:red;"><%=userCoin%></span></td>
		</tr>
		<tr>
			<td>充值金额：</td>
			<td><div style="margin-top:10px;margin-bottom:0px;"><input id="proxy-charge-inp" />
			<p>请认真核对充值金额，只能充值1-10000元</p>
			</div></td>
		</tr>
</table>
</script>